import React from "react";
import { Cell, Image } from "react-vant";
import dayjs from "dayjs";
import relativeTime from "dayjs/plugin/relativeTime";
dayjs.extend(relativeTime);

export default function DoctorCommentCard({ data }: { data: any }) {
  console.log(data, "data");
  return (
    <Cell
      center
      title={data.nickName}
      label={data.content}
      value={dayjs(data.commentTime).fromNow()}
      icon={<Image width={30} height={30} src={data.headPic} round />}
      // isLink
      // rightIcon={}
    />
  );
}
